21286af0439053281830d6d6b98699f622ef1644,blueocean-pipeline-api-impl/src/main/java/io/jenkins/blueocean/rest/impl/pipeline/MultiBranchPipelineImpl.java,MultiBranchPipelineImpl,isPullRequest,#Job#,268
Before Change
return counter;
}
private boolean isPullRequest(Job job) {
SCMHead head = SCMHead.HeadByItem.findHead(job);
return head != null && head.getAction(ChangeRequestAction.class) != null;
}
After Change
}
private boolean isPullRequest(Job job) {
// TODO probably want to be using SCMHeadCategory instances to categorize them instead of hard-coding for PRs
return SCMHead.HeadByItem.findHead(job) instanceof ChangeRequestSCMHead;
}